参考：https://www.cnblogs.com/WeiyiGeek/p/17676558.html#0x01-%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2

```
# 安装包部署
curl -O http://oss.liufq.com/tools/coredns/coredns_1.11.1_linux_amd64.tgz
tar xf coredns_1.11.1_linux_amd64.tgz -C /usr/local/bin
ln -s /usr/local/bin/coredns /usr/bin/coredns

# docker 部署
docker pull coredns/coredns:1.11.3

docker rm -f coredns && docker run -d --name coredns -p 53:53 coredns/coredns:1.11.3

docker build -t coredns:1.11.1 .
docker rm -f coredns
docker run -d --name coredns --network=host coredns:1.11.1
```